home *** CD-ROM | disk | FTP | other *** search
- Path: chronicle.mti.sgi.com!austern
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.std.c++
- Subject: Re: Generic Object Callbacks
- Date: 27 Feb 1996 10:48:27 PST
- Organization: self-employed
- Approved: austern@isolde.mti.sgi.com
- Message-ID: <4gvdbs$ccf@news.bridge.net>
- References: <pgpmoose.199602221531.14635@isolde.mti.sgi.com> <4gsi2p$905@bcarh8ab.bnr.ca> <4guh9e$jt6@sdaw04.seinf.abb.se>
- NNTP-Posting-Host: isolde.mti.sgi.com
- X-Original-Date: 27 Feb 1996 17:00:44 GMT
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBVAwUBMTNSDEy4NqrwXLNJAQHVdgH/a11wVrV3mNnzVuQP+R2292xnRTa9eORX
- Mvi+GetVycE9B0306+M/JZI5/tbc3w8NJ6HqRSh2IaL+uxFLcmbaRw==
- =YFv2
- Originator: austern@isolde.mti.sgi.com
-
- >> There exist a rather simple solution using a static member function.
- >> Instead of having the callback call a normal member function it can
- >> call a static callback member function with the object as a
- >> argument
-
- This would require to caller to store and pass the address of the
- object. Since a different static function would exist for each
- callbackable member of the class, the caller would have to keep and use 2
- items of data. He would presumably wrap them in a class for convenience,
- at which point he would have reinvented most of the work done by Richard
- Hickey's callback class.
-
- David
- ---
- [ comp.std.c++ is moderated. To submit articles: Try just posting with your
- newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
- comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
- Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu
- ]
-